package com.scau402.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scau402.system.mapper.WmsOutboundTypeMapper;
import com.scau402.system.domain.WmsOutboundType;
import com.scau402.system.service.IWmsOutboundTypeService;

/**
 * 出库类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
@Service
public class WmsOutboundTypeServiceImpl implements IWmsOutboundTypeService 
{
    @Autowired
    private WmsOutboundTypeMapper wmsOutboundTypeMapper;

    /**
     * 查询出库类型
     * 
     * @param outboundType 出库类型主键
     * @return 出库类型
     */
    @Override
    public WmsOutboundType selectWmsOutboundTypeByOutboundType(String outboundType)
    {
        return wmsOutboundTypeMapper.selectWmsOutboundTypeByOutboundType(outboundType);
    }

    /**
     * 查询出库类型列表
     * 
     * @param wmsOutboundType 出库类型
     * @return 出库类型
     */
    @Override
    public List<WmsOutboundType> selectWmsOutboundTypeList(WmsOutboundType wmsOutboundType)
    {
        return wmsOutboundTypeMapper.selectWmsOutboundTypeList(wmsOutboundType);
    }

    /**
     * 新增出库类型
     * 
     * @param wmsOutboundType 出库类型
     * @return 结果
     */
    @Override
    public int insertWmsOutboundType(WmsOutboundType wmsOutboundType)
    {
        return wmsOutboundTypeMapper.insertWmsOutboundType(wmsOutboundType);
    }

    /**
     * 修改出库类型
     * 
     * @param wmsOutboundType 出库类型
     * @return 结果
     */
    @Override
    public int updateWmsOutboundType(WmsOutboundType wmsOutboundType)
    {
        return wmsOutboundTypeMapper.updateWmsOutboundType(wmsOutboundType);
    }

    /**
     * 批量删除出库类型
     * 
     * @param outboundTypes 需要删除的出库类型主键
     * @return 结果
     */
    @Override
    public int deleteWmsOutboundTypeByOutboundTypes(String[] outboundTypes)
    {
        return wmsOutboundTypeMapper.deleteWmsOutboundTypeByOutboundTypes(outboundTypes);
    }

    /**
     * 删除出库类型信息
     * 
     * @param outboundType 出库类型主键
     * @return 结果
     */
    @Override
    public int deleteWmsOutboundTypeByOutboundType(String outboundType)
    {
        return wmsOutboundTypeMapper.deleteWmsOutboundTypeByOutboundType(outboundType);
    }
}
